package com.yonyou.brigade.third_parties.yihao.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author houyb
 * @since 2020-01-14
 */
@TableName("yihao_dept")
public class YihaoDept extends Model<YihaoDept> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 部门主键
     */
    private String pkDept;
    /**
     * 上级部门PK
     */
    private String superDept;
    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 租户id
     */
    private String tenant;

    /**
     * 时间戳
     */
    private Date ts;

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPkDept() {
        return pkDept;
    }

    public void setPkDept(String pkDept) {
        this.pkDept = pkDept;
    }

    public String getSuperDept() {
        return superDept;
    }

    public void setSuperDept(String superDept) {
        this.superDept = superDept;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }


    public static final String ID = "id";

    public static final String PKDEPT = "pkDept";

    public static final String SUPERDEPT = "superDept";

    public static final String DEPTNAME = "deptName";

    public static final String TENANT = "tenant";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "YihaoDept{" +
        "id=" + id +
        ", pkDept=" + pkDept +
        ", superDept=" + superDept +
        ", deptName=" + deptName +
        ", tenant=" + tenant +
        "}";
    }
}
